[mirrors]
http://downloads.sourceforge.net/project/pcmanfm/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/PCManFM/pcmanfm-1.0rc1.tar.gz
http://ftp.barfooze.de/pub/sabotage/tarballs/pcmanfm-1.0rc1.tar.gz
http://foss.aueb.gr/mirrors/linux/sabotage/tarballs/pcmanfm-1.0rc1.tar.gz
http://dl.2f30.org/mirrors/sabotage/tarballs/pcmanfm-1.0rc1.tar.gz

[vars]
filesize=447192
sha512=78f76dbf8c6452df9017b42d5df11bae1fd0cfd270219030d7e44476c8d2ff7c5fe4a8639f36e2754094775427f90c74e8ab727588906dad03f595b2bee7c09c
desc='GTK+ filemanager, major component of the LXDE desktop'

[deps]
intltool
libfm
libx11
gtk+2

[build]
patch -p1 < "$K"/pcmanfm-xcompile.patch
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="$optcflags -D_GNU_SOURCE" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags

for i in po ; do
	printf 'all:\n\ttrue\ninstall:\n\ttrue\nclean:\n\ttrue\n' > "$i"/Makefile
done

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

dest="$butch_install_dir""$butch_prefix"
mkdir -p "$dest"/share/lxde/pcmanfm
cp -f "$dest"/etc/xdg/pcmanfm/default/pcmanfm.conf "$dest"/share/lxde/pcmanfm/
